package day05;

public class txt13 {
    public static void main(String[] args) {
        int year = 2022;
        int month = 4;
         if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
            System.out.println("31");
        }else if(month==2){
            System.out.println(year%4==0&&year%100!=0||year%400==0?"29":"28");
        } else  {
            System.out.println("30");
        }
    }
}

